﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Mysoft.MyCM;
using Mysoft.MyCM.Scm;
using Mysoft.MyCM.Business;
using Mysoft.MyCM.Business.Scm;

namespace Mysoft.MyCM.Web.Controllers.WebApi.Scm
{
	/// <summary>
	/// SCM-项目Api（包含附加信息）
	/// </summary>
	public class Scm_Project2Controller : BaseApiController
    {
		private ProjectBLL _bll = new ProjectBLL();

		/// <summary>
		/// 根据TFS客户Id获取该客户所包含的项目信息（包含附加信息）
		/// </summary>
		/// <param name="customId"></param>
		/// <returns></returns>
		[ActionName("Get")]
		public IEnumerable<Project2> GetCustomProjects(Guid customId)
		{
			return _bll.GetCustomProjects2(customId);
		}
    }
}
